package com.ruoyi.system.domain;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.system.domain.vo.BodyInfoVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 过滤记录对象 t_leach_records
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
public class TLeachRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long workOrderId;

    /** 访问IP */
    @Excel(name = "访问IP")
    private String ip;

    /** 请求数据 */
    @Excel(name = "请求数据")
    private String body;

    /** 返回结果 */
    @Excel(name = "返回结果")
    private String result;

    /** 是否通过 */
    @Excel(name = "是否通过")
    private Integer adopt;

    private String headers;
    private String cookies;
    //真实IP
    private String realIp;
    //设备
    private String agent;
    //来源
    private String accept;
    //浏览器语言
    private String acceptLua;

    public String getHeaders() {
        return headers;
    }

    public void setHeaders(String headers) {
        this.headers = headers;
    }

    public String getAcceptLua() {
        return acceptLua;
    }

    public void setAcceptLua(String acceptLua) {
        this.acceptLua = acceptLua;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getRealIp() {
        return realIp;
    }

    public void setRealIp(String realIp) {
        this.realIp = realIp;
    }

    public String getCookies() {
        return cookies;
    }

    public void setCookies(String cookies) {
        this.cookies = cookies;
    }

    public String getAccept() {
        return accept;
    }

    public void setAccept(String accept) {
        this.accept = accept;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWorkOrderId(Long workOrderId) 
    {
        this.workOrderId = workOrderId;
    }

    public Long getWorkOrderId() 
    {
        return workOrderId;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setBody(String body) 
    {
        this.body = body;
    }

    public String getBody() 
    {
        return body;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setAdopt(Integer adopt)
    {
        this.adopt = adopt;
    }

    public Integer getAdopt()
    {
        return adopt;
    }

    private BodyInfoVo bodyInfoVo;

    public BodyInfoVo getBodyInfoVo() {
        return bodyInfoVo;
    }

    public void setBodyInfoVo(BodyInfoVo bodyInfoVo) {
        this.bodyInfoVo = bodyInfoVo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("workOrderId", getWorkOrderId())
            .append("ip", getIp())
            .append("body", getBody())
            .append("result", getResult())
            .append("adopt", getAdopt())
            .append("createTime", getCreateTime())
            .toString();
    }
}
